package com.yb.guigu.pick.auth;

import com.yb.guigu.pick.core.bean.UserCodeExpire;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

/**
 * Copyright (C), 2022-2023, 姚兵
 * Author: 32210
 * Date: 2023/6/27 11:50
 * FileName: Apptest
 * Description:
 */

@SpringBootTest
public class Apptest {

    @Autowired
    UserCodeExpire userCodeExpire;
    @Test
    public void test(){
        System.out.println(userCodeExpire);
    }


    @Autowired
    MyTestBean myTestBean;
    @Test
    public void test1() throws ClassNotFoundException {
        Class aClass = ClassLoader.getSystemClassLoader().loadClass("com.yb.guigu.pick.auth.MyEnum");


        Enum<?> result = Enum.valueOf(aClass, "A");
        System.out.println(result.getDeclaringClass());

        System.out.println(myTestBean);
    }
}
